package com.woniuxy.login;

import com.opensymphony.xwork2.ActionSupport;


public class LoginAction extends ActionSupport {
	
	private Factory user;
	public String execute() throws Exception {
		if("admin".equals(user.getUsername()) && "123".equals(user.getPassword())){
			return SUCCESS;
		}
		return ERROR;
	}
	public Factory getUser() {
		return user;
	}
	public void setUser(Factory user) {
		this.user = user;
	}
	
}
